home *** CD-ROM | disk | FTP | other *** search
Wrap
========== Description Part Begin ========== name = "Combination3"; description = "Four groups of characters, forming into four circles, are combined into one in the end."; version = "1.00"; bin = "Combination3.bin"; ========== Description Part End ========== ========== Parameter Part Begin ========== $nCharacterCount(EDIT,INT,1,1 10000,"Total Characters ","The total characters using the special effect. The value is defined by the selected characters in the movie, but can not be changed in the property box."); $nFrameCount(EDIT,INT,5,5 5,"Total Frames","It indicates the total frames of actions. The total frames of the effect is probably more than it."); $nRadius(EDIT,INT,110,0 1000,"Radius","The radius of the arc, which consists of characters."); $nInterval(EDIT,INT,5,0 1000,"Interval","The time difference between the former character and the latter one beginning to change."); $nAlphaSpeed(EDIT,INT,3,0 1000,"Fading Speed","The speed of character fading."); ========== Parameter Part End ========== ========== Function Part Begin ========== nFrameCount = 5; nCharacterCount = 13; nRadius = 140; nInterval = 5; nAlphaSpeed = 3; nIsRun = new Array(nCharacterCount); nRotateArray = new Array(nCharacterCount); nRadiusArray = new Array(nCharacterCount); nCentreX = new Array(nCharacterCount); nCentreY = new Array(nCharacterCount); nOldPosX = new Array(nCharacterCount); nOldPosY = new Array(nCharacterCount); for(i = 1;i <= nCharacterCount;i++) { if(i <= nCharacterCount/2) nRotateArray[i - 1] = 225; else nRotateArray[i - 1] = 315; nRadiusArray[i - 1] = nRadius; if(i <= nCharacterCount/2) this["c" + i]._x -= nRadius; else this["c" + i]._x += nRadius; nOldPosX[i - 1] = this["c" + i]._x; nOldPosY[i - 1] = this["c" + i]._y; if(i == 1 || i == nCharacterCount) { nIsRun[0] = 0; nIsRun[nCharacterCount -1] = 0; } else { if(i <= nCharacterCount/2) { nIsRun[i - 1] = nIsRun[i - 2]; nIsRun[i - 1] += nInterval; } else { multiple = nCharacterCount - i ; nIsRun[i - 1] = multiple * nInterval; //nIsRun[i -1] = nIsRun[nCharacterCount - i]; } } this["c" + i]._alpha = 50; this["c" + i].duplicateMovieClip("cc" + i + i,i); this["cc" + i + i]._y += nRadius; this["c" + i]._y -= nRadius; this["c" + i]._visible = false; this["cc" + i + i]._visible = false; } function fadeout() { if(c1._alpha < 0) gotoAndPlay(1); for(i = 1;i <= nCharacterCount;i++) { this["c" + i]._alpha -= nAlphaSpeed; this["cc" + i + i]._alpha -= nAlphaSpeed; } } function FadeoutAgain() { gotoAndPlay(4); } function IsAllCharacterEnd() { bIsEnd = true; for(n = 1;n <= nCharacterCount;n++) { if(this["c" + n]._alpha != 100) { bIsEnd = 0; break; } } if(bIsEnd) gotoAndPlay(4); } function fun() { for(i = 1;i <= nCharacterCount;i++) { if(nIsRun[i -1] < 0) { this["c" + i]._visible = true; this["cc" + i + i]._visible = true; //?¿┤¿«Dª╠???¿ª?ª╠?ª╠¿▓¿░????íÑí┴í┬?¿ó¿║? IsAllCharacterEnd(); this["c" + i]._x = Math.cos(Math.PI / 180 * nRotateArray[i -1]) * nRadiusArray[i -1] + nOldPosX[i -1]; this["cc" + i + i]._x = Math.cos(Math.PI / 180 * (360 - nRotateArray[i -1])) * nRadiusArray[i -1] + nOldPosX[i -1]; this["c" + i]._y = Math.sin(Math.PI / 180 * nRotateArray[i -1]) * nRadiusArray[i -1] + nOldPosY[i -1]; this["cc" + i + i]._y = Math.sin(Math.PI / 180 * (360 - nRotateArray[i -1])) * nRadiusArray[i -1] + nOldPosY[i -1]; if(i <= nCharacterCount / 2) { nRotateArray[i -1] += 5; if(nRotateArray[i -1] > 360) { this["c" + i]._alpha = 100; this["cc" + i + i]._alpha = 100; nRotateArray[i -1] = 360; } } else { nRotateArray[i -1] -= 5; if(nRotateArray[i -1] < 180) { this["c" + i]._alpha = 100; this["cc" + i + i]._alpha = 100; nRotateArray[i -1] = 180; } } } else nIsrun[i -1]--; } } function again() { gotoAndPlay(2); } ========== Function Part End ========== ========== Frame Part Begin ========== $frame(fun,1,-1,"fun"); $frame(fun,2,-1,"fun"); $frame(again,3,-1,"again"); $frame(fadeout,4,-1,"fadeout"); $frame(FadeoutAgain,5,-1,"fadeout again"); ========== Frame Part End ==========